//
//  MyCoreData.h
//  kankanVideo
//
//  Created by wangbo on 5/30/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

@protocol MyCoreDataDelegate <NSObject>

@required
-(void)processComplete;

@end

#import <Foundation/Foundation.h>

@interface MyCoreData : NSObject{
    id<MyCoreDataDelegate>delegate;
    NSError *error;
    NSArray *objects;
    NSString *tblname;
}
@property(nonatomic,assign)id<MyCoreDataDelegate>delegate;
-(MyCoreData*)initWithTableName:(NSString*)tblName;
-(NSUInteger)count;
-(void)insert;
-(void)insertWithParam:(NSMutableArray*)param;
-(void)deleteWithParam:(NSMutableArray*)param;
-(NSArray*)query;
-(void)delall;
-(void)insertVideoList:(NSMutableArray*)param withClassid:(NSString*)clsid;
-(NSArray*)queryVideoList:(NSString*)classid;
-(void)deleteVideoList:(NSString*)classid;
-(void)insertConfig:(NSString*)_isfirst;
-(NSArray*)queryConfig;
-(void)updateConfig:(NSString*)_token withUserid:(NSString*)_userid withName:(NSString*)_name;
+(MyCoreData*)shareInstance;


@end
